<!--
 * @Descripttion: 
 * @version: @ 1.0.0
 * @Author: ZJZ
 * @Date: 2021-07-26 08:40:20
 * @LastEditors: 朱江洲
 * @LastEditTime: 2022-06-01 14:11:29
-->
<template>
  <div class="app-container">
    <div class="header">
      <div class="bread">
        <span style="margin-left: 10px">线索管理</span>
      </div>
      <div class="ipt">
        <el-input
          v-model="input"
          placeholder="请输入线索名称/手机号码"
          size="normal"
          clearable
          class="ipt-el"
        ></el-input>
        <el-button type="primary" size="default" @click="search">
          搜索
        </el-button>
      </div>
      <div class="btn">
        <el-button
          type="primary"
          size="default"
          @click="newClue"
          v-hasPermi="['serviceProvide:clue:add']"
        >
          + 新建线索
        </el-button>
        <el-dropdown>
          <el-button class="el-icon-more"></el-button>
          <el-dropdown-menu slot="dropdown">
            <el-dropdown-item
              @click.native="importClue"
              v-hasPermi="['serviceProvide:clue:exportAll']"
            >
              导入
            </el-dropdown-item>
            <el-dropdown-item
              @click.native="getExl"
              v-hasPermi="['serviceProvide:clue:import']"
            >
              导出
            </el-dropdown-item>
          </el-dropdown-menu>
        </el-dropdown>
      </div>
    </div>
    <div class="chooise" v-if="selShow">
      <span>场景：</span>
      <el-select
        v-model="value"
        ref="sel"
        clearable
        @visible-change="(v) => visibleChange(v, 'sel', selClick, admClick)"
        class="sel-sence"
        style="margin-right: 10px"
        @change="querySceneList"
      >
        <el-option
          v-for="item in options"
          :key="item.sceneId"
          :label="item.name"
          :value="item.sceneId"
        >
        </el-option>
      </el-select>
      <el-button
        type="primary"
        icon="iconfont icon-shaixuan"
        size="default"
        @click="onScreen"
      >
        高级筛选
      </el-button>
    </div>
    <div class="sel" v-else>
      <span> 已选中 {{ multipleSelection.length }} 项</span>
      <el-button
        type="primary"
        size="default"
        @click="edit"
        :disabled="disabled"
        v-hasPermi="['serviceProvide:clue:update']"
      >
        编辑
      </el-button>
      <el-button
        type="primary"
        size="default"
        plain
        :disabled="disabled"
        @click="changeCharge"
        v-hasPermi="['serviceProvide:clue:changeDirector']"
      >
        更换负责人
      </el-button>
      <el-button
        type="primary"
        size="default"
        plain
        @click="transformation"
        v-hasPermi="['serviceProvide:clue:intoCustomer']"
      >
        转化为客户
      </el-button>
      <el-button type="primary" plain size="default" @click="addTeam">
        添加团队成员
      </el-button>
      <el-button
        type="primary"
        size="default"
        plain
        @click="selectImport"
        v-hasPermi="['serviceProvide:clue:export']"
      >
        导出选中
      </el-button>
      <el-button type="danger" size="default" plain @click="del">
        删除
      </el-button>
    </div>
    <div v-if="scenArr !== []" class="scenF">
      <div v-for="(item, index) in scenArr" :key="index" class="scenF-content">
        <div class="scenF-detail" @click="scenSearch(item.sceneId)">
          {{ item.sceneList }}
          <i
            class="el-icon-circle-close"
            @click.stop="scenDel(index)"
            style="margin-left: 10px"
          ></i>
        </div>
      </div>
    </div>
    <div class="table">
      <el-table
        :data="tableData"
        style="width: 100%"
        ref="multipleTable"
        @selection-change="handleSelectionChange"
        :height="tableHight"
      >
        <template slot="empty" class="emptyBg">
          <img src="@/assets/images/empty.jpg" alt="" />
        </template>
        <el-table-column type="selection" width="55"> </el-table-column>
        <template v-for="(item, index) in switchShow">
          <el-table-column
            :key="index"
            :label="item.label"
            :width="item.width"
            v-if="showH(item, index)"
            :prop="item.stage"
            fixed
            :show-overflow-tooltip="true"
          >
            <template slot-scope="scope">
              <span class="staff" @click="drawer(scope.row)">
                {{ scope.row.name }}
              </span>
            </template>
          </el-table-column>
          <el-table-column
            :key="index"
            :label="item.label"
            :prop="item.stage"
            :width="item.width"
            v-show="item.value"
            v-if="item.label !== '线索名称' && item.value"
            :show-overflow-tooltip="true"
          >
          </el-table-column>
        </template>
        <el-table-column fixed="right">
          <template slot="header">
            <i class="iconfont icon-shujupeizhi" @click.stop="tableShow"> </i>
          </template>
        </el-table-column>
      </el-table>
      <div class="wuhu">
        <table-sh
          :dialog="dialog"
          :switchShow="switchShow"
          v-if="dialog.dialogTableVisible"
          @submit="getSwitchList"
          class="sh"
        >
        </table-sh>
      </div>
    </div>
    <!-- 分页器 -->
    <el-pagination
      prev-text="上一页"
      next-text="下一页"
      background
      :page-size="pageSize"
      :page-sizes="[10, 20, 30, 40, 50, 100]"
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="pageNum"
      layout=" ->,total,sizes, prev, pager, next, jumper "
      :total="total"
    >
    </el-pagination>
    <div class="importInfo">
      <el-dialog
        title="员工导入"
        :visible.sync="dialogImport"
        width="50%"
        custom-class="dialogClass"
        :close-on-click-modal="false"
      >
        <div class="module">
          <div class="module-txt">
            1.<span style="color: #1267fa">下载</span>线索信息模版，填写模版信息
          </div>
          <div class="module-img">
            <img src="@/assets/images/download.png" alt="" />
            <el-button round style="" @click="downloadTemplate">
              下载模板
            </el-button>
          </div>
        </div>
        <div class="dashed"></div>
        <div class="module">
          <div class="module-txt">
            2.<span style="color: #1267fa">上传</span>填写好的线索信息文件
          </div>
          <div class="module-img">
            <img src="@/assets/images/upload.png" alt="" />
            <el-upload
              class="upload-demo"
              ref="upload"
              action="#"
              :limit="1"
              accept=".xlsx"
              :http-request="httpRequest"
              :on-change="handleChangeFile"
            >
              <el-button class="taskBtn" round> 上传文件 </el-button>
            </el-upload>
          </div>
        </div>
        <span slot="footer">
          <div>
            <span class="font-txt">
              注：
              导入会覆盖原有线索的信息，如需更新已存在的线索，请先导出通讯录，在导出表格里进行修改
            </span>
          </div>
        </span>
      </el-dialog>
    </div>
    <screen
      :dialog="dialog"
      :switchShow="switchShow"
      v-if="dialog.screenEcejt"
      @sceneArr="sceneArr"
    ></screen>
    <!-- 更换负责人 -->
    <el-dialog
      title="更换负责人"
      :visible.sync="dialog.dialogPerCha"
      width="50%"
      @close="perClose"
      custom-class="dialogClass"
      :close-on-click-modal="false"
    >
      <charge-person
        v-if="dialog.dialogPerChaEject"
        ref="chaPer"
      ></charge-person>
      <span slot="footer">
        <el-button @click="dialog.dialogPerCha = false"> 取消 </el-button>
        <el-button type="primary" @click="onChangeChar"> 确定 </el-button>
      </span>
    </el-dialog>
    <div class="newClue">
      <new-clue
        :dialog="dialog"
        :clueForm="clueForm"
        v-if="dialog.ejectClue"
      ></new-clue>
    </div>

    <screen :dialog="dialog" :switchShow="switchShow"></screen>
    <clue-drawer
      :dialog="dialog"
      :drawerData="drawerData"
      v-if="dialog.eject"
      @putUpdata="putUpdata"
    ></clue-drawer>
    <drag-table
      :dialog="dialog"
      v-if="dialog.senceAdminEject"
      ref="dragTable"
    ></drag-table>
    <tips :dialog="dialog"></tips>
    <join-team
      :dialog="dialog"
      v-if="dialog.joinTeamShowEject"
      :drawerData="drawerData"
      :entities="entities"
      :type="type"
    ></join-team>
    <transfer
      :dialog="dialog"
      :drawerData="drawerData"
      :type="type"
      v-if="dialog.transferShowEject"
    ></transfer>
  </div>
</template>

<script>
import {
  getClueList,
  convertCustomer,
  exportSelect,
  clueDel,
  importAll,
  exportTemplateCus,
  importInfo,
  changeDirectorClue,
  queryScene,
} from "@/api/CRM";
import { rw, isDelete } from "@/api/team";
import { distriBution } from "@/api/registration";
import ClueDrawer from "./components/clueDrawer.vue";
import newClue from "./components/newClue.vue";
import screen from "./components/screen.vue";
import tableSh from "./components/tableSh.vue";
import DragTable from "./components/clueMana/dragTable.vue";
import Tips from "@/components/tips/index.vue";
import { mapGetters } from "vuex";
import chargePerson from "@/components/chargePerson";
import joinTeam from "@/components/joinTeam/index.vue";
import Transfer from "@/components/joinTeam/transfer.vue";
export default {
  components: {
    newClue,
    screen,
    tableSh,
    ClueDrawer,
    DragTable,
    Tips,
    chargePerson,
    joinTeam,
    Transfer,
  },
  data() {
    return {
      entities: [],
      type: 8,
      tableHight: window.innerHeight - 330,
      scenArr: [],
      chargeId: "", //更换负责人id
      charge: "",
      pageSize: 10,
      pageNum: 1,
      defaultParams: {
        label: "name",
        value: "sceneId",
        children: "sceneDataList",
        expandTrigger: "hover",
        checkStrictly: true,
      },
      file: {},
      dialogImport: false,
      selShow: true,
      disabled: false,
      putData: {},
      multipleSelection: [], // 多选数组集合
      total: 0,
      input: "", //搜索
      value: "", // 场景的
      drawerData: {}, // 抽屉回显数据
      dialog: {
        dialogClueShow: false,
        dialogScreenVisible: false,
        dialogTableVisible: false,
        clueDrawer: false,
        activity: true,
        eject: false, // 弹出框隐藏
        ejectClue: false, //新建线索隐藏
        dialogPerCha: false,
        dialogPerChaEject: false,
        senceAdmin: false,
        senceAdminEject: false,
        screenEcejt: false,
        isVipTip: false,
        csQrShow: false,
        joinTeamShowEject: false,
        joinTeamShow: false,
        editTeamShowEject: false,
        editTeamShow: false,
        transferShow: false,
        transferShowEject: false,
      },
      chargeList: [],
      // 控制表单的显示与隐藏
      switchShow: [
        {
          value: true,
          label: "线索名称",
          stage: "name",
        },
        {
          value: true,
          label: "线索来源",
          stage: "sourceName",
        },
        { value: true, label: "手机号码", stage: "phone", width: "180" },
        {
          value: true,
          label: "客户行业",
          stage: "industryName",
        },
        {
          value: true,
          label: "客户级别",
          stage: "levelName",
        },
        {
          value: true,
          label: "地址",
          stage: "address",
        },
        {
          value: true,
          label: "备注",
          stage: "remark",
        },
        {
          value: true,
          label: "更新时间",
          stage: "updateTime",
          width: "130",
        },
        {
          value: true,
          label: "负责人",
          stage: "directorName",
          width: "130",
        },
        {
          value: true,
          label: "创建人",
          stage: "createBy",
          width: "130",
        },
        {
          value: true,
          label: "创建时间",
          stage: "createTime",
          width: "130",
        },
      ],
      tableData: [],
      options: [],
      clueForm: {
        id: "",
        name: "",
        source: "", //来源
        phone: "",
        level: "",
        industry: "", // 行业
        address: "",
        remark: "", // 备注
        customField: null,
      },
    };
  },
  created() {
    this.getList();
    this.getDistri();
    this.getScene();
  },
  watch: {
    input(newValue, oldValue) {
      if (newValue == "") {
        this.getList();
      }
    },
  },
  mounted() {
    document.addEventListener("click", this.bodyCloseMenus);
    window.onresize = () => {
      return (() => {
        this.tableHight = window.innerHeight - 330;
      })();
    };
  },
  beforeDestroy() {
    document.removeEventListener("click", this.bodyCloseMenus);
  },
  activated() {
    this.tableHight = window.innerHeight - 330;
  },
  computed: {
    ...mapGetters(["isVip"]),
  },
  methods: {
    // 新增团队
    addTeam() {
      this.dialog.joinTeamShowEject = true;
      this.$nextTick(() => {
        this.dialog.joinTeamShow = true;
      });
    },
    // 关闭更换负责人
    perClose() {
      this.charge = "";
      this.dialog.dialogPerChaEject = false;
    },
    // 更换负责人
    changeCharge() {
      this.dialog.transferShowEject = true;
      this.$nextTick(function () {
        this.dialog.transferShow = true;
      });
    },
    // 点击空白
    bodyCloseMenus(e) {
      let self = this;
      if (self.dialog.dialogTableVisible == true) {
        self.dialog.dialogTableVisible = false;
      }
    },
    // 点击临时搜索
    scenSearch(id) {
      this.getList(id);
    },
    // 删除临时搜索
    scenDel(i) {
      this.scenArr.splice(i, 1);
      if (this.scenArr.length == 0) {
        this.getList();
      }
    },
    // 获取数组
    sceneArr(data) {
      this.scenArr.push(data);
    },
    querySceneList() {
      this.getList(this.value);
    },
    //管理
    admClick() {
      this.dialog.senceAdminEject = true;
      this.$nextTick(function () {
        this.dialog.senceAdmin = true;
      });
    },
    //新建场景
    selClick() {
      this.onScreen();
    },
    // 场景下拉框按钮
    visibleChange(visible, refName, onClick, onClick2) {
      if (visible) {
        const ref = this.$refs[refName];
        let popper = ref.$refs.popper;
        if (popper.$el) popper = popper.$el;
        if (
          !Array.from(popper.children).some(
            (v) => v.className === "el-cascader-menu__list"
          )
        ) {
          const el = document.createElement("ul");
          el.className = "el-cascader-menu__list";
          el.style =
            "border-top: solid 1px #E4E7ED; padding:0; color: #606266;";
          el.innerHTML = `<li class="el-cascader-node" >
                            <span class="el-cascader-node__label" style='color:#1267FA'>新建场景</span>
                            </li>
                        `;
          const el2 = document.createElement("ul");
          el2.className = "el-cascader-menu__list";
          el2.innerHTML = `<li class="el-cascader-node" >
                            <span class="el-cascader-node__label" style='color:#1267FA'>管理</span>
                            </li>
                        `;
          popper.appendChild(el);
          popper.appendChild(el2);
          el2.onclick = () => {
            onClick2 && onClick2();
            if (ref.toggleDropDownVisible) {
              ref.toggleDropDownVisible(false);
            } else {
              ref.visible = false;
            }
          };
          el.onclick = () => {
            // 底部按钮的点击事件 点击后想触发的逻辑也可以直接写在这
            onClick && onClick();
            // 以下代码实现点击后弹层隐藏 不需要可以删掉
            if (ref.toggleDropDownVisible) {
              ref.toggleDropDownVisible(false);
            } else {
              ref.visible = false;
            }
          };
        }
      }
    },
    handleChangeFile(file) {
      var fd = new FormData();
      fd.append("file", file.raw);
      importInfo(fd).then((res) => {
        if (res.code !== 200) return this.$refs.upload.clearFiles();
        this.$message.success(res.msg);
        this.getList();
        this.dialogImport = false;
      });
    },
    // 修改
    edit() {
      rw({
        module: this.type,
        entity: this.drawerData.id,
        userId: this.drawerData.userId,
      }).then((res) => {
        if (res.data == true) {
          this.dialog.dialogClueShow = true;
          this.dialog.ejectClue = true;
          this.clueForm.name = this.multipleSelection[0].name;
          this.clueForm.source = this.multipleSelection[0].source;
          this.clueForm.phone = this.multipleSelection[0].phone;
          this.clueForm.level = this.multipleSelection[0].level;
          this.clueForm.industry = this.multipleSelection[0].industry;
          this.clueForm.address = this.multipleSelection[0].address;
          this.clueForm.remark = this.multipleSelection[0].remark;
          this.clueForm.id = this.multipleSelection[0].id;
        } else {
          this.$message.info("无编辑权限");
        }
      });
    },
    // 获取高级筛选
    getScene() {
      queryScene({ type: 8 }).then((res) => {
        if (res.default !== null) {
          res.scenes.unshift(res.default);
          this.options = res.scenes;
        } else {
          this.options = res.scenes;
        }
      });
    },
    // 获取负责人
    getDistri() {
      distriBution().then((res) => {
        this.chargeList = res.data;
      });
    },
    // 更新
    putUpdata(val) {
      console.log(val);
      this.clueForm.name = val.name;
      this.clueForm.source = val.source;
      this.clueForm.phone = val.phone;
      this.clueForm.level = val.level;
      this.clueForm.industry = val.industry;
      this.clueForm.address = val.address;
      this.clueForm.remark = val.remark;
      this.clueForm.id = val.id;
    },
    onSubmit(file) {
      var fd = new FormData();
      fd.append("file", file);
      importInfo(fd).then((res) => {
        this.$message.success(res.msg);
        this.getList();
        this.dialogImport = false;
      });
    },
    importClue() {
      this.dialogImport = true;
    },
    selectImport() {
      let ids = [];
      this.multipleSelection.forEach((item) => {
        ids.push(item.id);
      });
      exportSelect(ids).then((res) => {
        this.download(res.msg);
      });
    },
    transformation() {
      let ids = [];
      this.multipleSelection.forEach((item) => {
        ids.push(item.id);
      });
      console.log(ids);
      convertCustomer(ids).then((res) => {
        this.$message.success("转换成功！");
        this.getList();
      });
    },
    search() {
      this.getList();
    },

    getList(val) {
      getClueList({
        pageSize: this.pageSize,
        pageNum: this.pageNum,
        sceneId: val,
        identification: this.input,
      }).then((res) => {
        console.log(res);
        this.total = res.total;
        this.tableData = res.rows;
      });
    },
    async del() {
      let ids = [];
      this.multipleSelection.forEach((item) => {
        ids.push(item.id);
      });
      const confirmResult = await this.$confirm(
        "此操作将永久删除该线索, 是否继续?",
        "提示",
        {
          confirmButtonText: "确定",
          cancelButtonText: "取消",
          type: "warning",
        }
      ).catch((err) => err);
      /*如果用户确认打印confirm,如果用户取消显示cancel*/
      if (confirmResult !== "confirm") {
        return this.$message.info("已取消删除!");
      } else {
        let userIds = [];
        this.multipleSelection.forEach((item) => {
          userIds.push(item.userId);
        });
        isDelete(userIds).then((res) => {
          if (res.data == true) {
            clueDel(ids).then((res) => {
              this.$message.success(res.msg);
              if (this.tableData.length == 0 && this.pageNum > 1) {
                this.pageNum--;
              }
              this.getList();
            });
          } else {
            this.$message.error("请联系负责人进行删除！");
          }
        });
      }
      // console.log('确认了删除')
    },
    onScreen() {
      this.dialog.screenEcejt = true;
      this.$nextTick(function () {
        this.dialog.dialogScreenVisible = true;
      });
    },
    onChangeChar() {
      if (this.charge == "") return this.$message.error("请选择负责人");
      changeDirectorClue({
        ids: this.chargeId,
        userId: this.charge,
      }).then((res) => {
        this.$message.success(res.msg);
        this.getList();
        this.$forceUpdate();
        this.dialog.dialogPerCha = false;
      });
    },
    // 下载模板
    downloadTemplate() {
      exportTemplateCus().then((response) => {
        this.download(response.msg);
      });
    },
    /** 导出按钮操作 */
    getExl() {
      this.$confirm("是否确认导出所有角色数据项?", "警告", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning",
      })
        .then(function () {
          return importAll();
        })
        .then((response) => {
          console.log(response);
          this.download(response.msg);
        });
    },

    httpRequest(data) {},
    handleSizeChange(val) {
      this.pageSize = val;
      this.pageNum = 1;
      this.getList();
    },
    //currentPage 改变时会触发
    handleCurrentChange(val) {
      this.pageNum = val;
      this.getList();
    },
    getSwitchList(list) {
      this.$set(this, "switchShow", list);
    },
    updataSubmit(data) {
      this.switchShow = data;
    },
    drawer(row) {
      this.dialog.eject = true;
      this.$nextTick(function () {
        this.dialog.clueDrawer = true;
      });
      this.drawerData = row;
    },
    newClue() {
      this.$store.dispatch("isVip");
      if (this.isVip) {
        this.dialog.ejectClue = true;
        this.$nextTick(function () {
          this.dialog.dialogClueShow = true;
        });
      } else {
        console.log(1);
        this.dialog.isVipTip = true;
      }
    },
    handleChange(val) {
      this.getList();
    },
    // 表格前多选器
    handleSelectionChange(val) {
      this.selShow = false;
      this.multipleSelection = val;
      this.entities = [];
      if (val.length !== 0) {
        this.chargeId = val[0].id;
        this.drawerData = val[0];
        val.forEach((item) => {
          this.entities.push(item.id);
        });
      }
      if (val.length == 0) {
        this.selShow = true;
      }
      if (val.length > 1) {
        this.disabled = true;
      } else {
        this.disabled = false;
      }
    },
    tableShow() {
      if (this.dialog.dialogTableVisible == false) {
        this.dialog.dialogTableVisible = true;
      } else {
        this.dialog.dialogTableVisible = false;
      }
    },
    showH(item, index) {
      let bole = false;
      if (item.label === "线索名称") {
        bole = true;
      }
      if (!item.value) bole = false;
      return bole;
    },
  },
};
</script>

<style lang="less" scoped>
.header {
  width: 100%;
  height: 74px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #ececec;
  .bread {
    font-size: 16px;
    font-weight: 500;
    margin-top: 20px;
    margin-left: 5px;
    height: 30px;
    display: flex;
    vertical-align: middle;
    line-height: 30px;
    p {
      margin-left: 10px;
      font-size: 16px;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 500;
      color: #2b2b2b;
    }
  }

  .ipt {
    margin-top: 16px;
    width: 340px;
    /deep/ .el-input__inner {
      border-radius: 4px 0 0 4px;
    }
    .el-button--primary {
      border-radius: 0 4px 4px 0;
    }
  }
  .btn {
    margin-top: 16px;
    .el-button--primary {
      background-color: #ed732e;
      border: #ed732e;
    }
  }
}
.el-dropdown {
  margin-left: 15px;
}
.chooise {
  margin-top: 20px;
  .sel {
    margin: 0 14px;
  }
  .el-button {
    font-size: 14px;
    /deep/ span {
      margin-left: 5px;
    }
  }
}
/deep/.el-table__body-wrapper {
  height: 695px;
}
.staff {
  color: #1267fa;
}
.el-table {
  margin-top: 20px;
}
.newStaff {
  margin-left: 200px;
}
// .newClue {
//   /deep/.el-dialog {
//     margin-left: 200px;
//   }
// }

/deep/.el-tabs__content {
  height: 100vh;
}
.el-pagination {
  margin-top: 24px;
  /deep/ .el-pagination__total {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    margin-right: 25px;
  }
  /deep/ .btn-prev {
    width: 80px;
    height: 40px;
    text-align: center;
  }
  /deep/ .btn-next {
    width: 80px;
    height: 40px;
    text-align: center;
  }
  /deep/ .number {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
  }
  /deep/ .el-input__inner {
    // width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
  }
  /deep/ .more {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
  }
  /deep/ .el-pagination__jump {
    .el-input__inner {
      width: 40px;
      height: 40px;
    }
  }
}
.sel {
  margin-top: 20px;
  span {
    margin-right: 40px;
  }
}
.font-txt {
  font-size: 12px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #9aa1af;
  line-height: 17px;
}
.importInfo {
  /deep/.el-dialog__footer {
    text-align: left;
  }
  /deep/ .el-dialog__body {
    display: flex;
    justify-content: space-around;
    .module {
      width: 40%;
      height: 300px;
      .module-img {
        width: 49px;
        height: 60px;
        margin: 50%;
        transform: translate(-50%, -50%);
        img {
          width: 100%;
          height: 100%;
        }
        .el-button {
          margin-top: 10px;
          transform: translateX(-25%);
        }
      }

      .module-txt {
        transform: translateY(400%);
        text-align: center;
        font-size: 14px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #1f2e4d;
      }
    }
  }
  .dashed {
    width: 1px;
    height: 180px;
    border-left: 2px dashed rgba(0, 0, 0, 0.1);
    transform: translateY(35%);
  }
  // /deep/.el-upload-list {
  //   display: none;
  // }
}
.table {
  position: relative;
  .wuhu {
    position: absolute;
    top: 45px;
    right: 0px;
    z-index: 9999;
    background-color: #fff;
    border: 1px solid #ececec;
  }
}
.ipt-el {
  width: 240px;
}
.scenF {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  .scenF-content {
    display: flex;
    margin-left: 10px;
    margin-top: 10px;
    .scenF-detail {
      height: 36px;
      line-height: 36px;
      padding-left: 20px;
      padding-right: 20px;
      border: 1px solid #9aa1af;
      font-size: 14px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #666666;
      .el-icon-circle-close {
        transform: translateY(3px);
      }
    }
  }
}
.chaSel {
  margin-left: 40px;
}
</style>